<?php
define('PROTOCOL', strtolower(substr($_SERVER['SERVER_PROTOCOL'], 0, 5)) == 'https' ? 'https://' : 'http://');
define('SERVER_NAME', $_SERVER['SERVER_NAME']);


//define language
define('VN',1);
define('EN',2);

//define ACTIVE/DISABLE
define('ACTIVE',1);
define('DISABLE',0);

//define user type
define('ADMIN',1);
define('USER',2);

//define project status
define('IN_PROGRESS',0);
define('DONE',1);
define('NOT_YET',2);
define('SUSPEND',3);

//define sex
define('MALE',1);
define('FEMALE',0);

//define article types
define('NEWS',1);
define('KNOWLEDGES',2);

//for Show Item Per Page List
define('DEFAULE_ITEMS_IN_LIST', 10);

define('UPDATE',1);
define('INSERT', 2);

define('DS',	DIRECTORY_SEPARATOR);

/*  action */

define('ACTION_DELETE',"delete");
define('ACTION_EDIT',"edit");
define('ACTION_SAVE', "save");
define('ACTION_APPROVE', "approve");

define('ROOT', dirname(dirname(dirname(__FILE__))));
define('ROOT_PUBLIC', ROOT.DS.'public');
define('ROOT_PUBLIC_UPLOADS', ROOT_PUBLIC.DS.'uploads');

define('ROOT_APPLICATION',  ROOT.DS.'application');
define('ROOT_APPLICATION_LAYOUTS',  ROOT_APPLICATION.DS.'layouts');
define('ROOT_APPLICATION_OBJECT', ROOT_APPLICATION.DS.'object');

define('ROOT_LIBRARY',  ROOT.DS.'library');
define('ROOT_LIBRARY_DEFINE',   ROOT_LIBRARY.DS.'define');
define('ROOT_LIBRARY_UTILITY',  ROOT_LIBRARY.DS.'utility');

define('ROOT_APPLICATION_MODULE', ROOT_APPLICATION.DS.'modules');
define('ROOT_APPLICATION_MODULE_BACKEND', ROOT_APPLICATION_MODULE.DS.'backend');
define('ROOT_APPLICATION_MODULE_BACKEND_CONTROLLERS', ROOT_APPLICATION_MODULE_BACKEND.DS.'controllers');
define('ROOT_APPLICATION_MODULE_BACKEND_FORMS', ROOT_APPLICATION_MODULE_BACKEND.DS.'forms');
define('ROOT_APPLICATION_MODULE_BACKEND_MODELS', ROOT_APPLICATION_MODULE_BACKEND.DS.'models');
define('ROOT_APPLICATION_MODULE_BACKEND_VIEWS', ROOT_APPLICATION_MODULE_BACKEND.DS.'views');

define('ROOT_APPLICATION_MODULE_DEFAULT', ROOT_APPLICATION_MODULE.DS.'default');
define('ROOT_APPLICATION_MODULE_DEFAULT_CONTROLLERS', ROOT_APPLICATION_MODULE_DEFAULT.DS.'controllers');
define('ROOT_APPLICATION_MODULE_DEFAULT_FORMS', ROOT_APPLICATION_MODULE_DEFAULT.DS.'forms');
define('ROOT_APPLICATION_MODULE_DEFAULT_MODELS', ROOT_APPLICATION_MODULE_DEFAULT.DS.'models');
define('ROOT_APPLICATION_MODULE_DEFAULT_VIEWS', ROOT_APPLICATION_MODULE_DEFAULT.DS.'views');

define('ROOT_LOG', ROOT.DS.'log');
define('ERROR_FILE', ROOT_LOG.DS.'error.txt');

define('ROOT_LANGUAGE',ROOT.DS.'language');

define('ROOT_LANGUAGE_EN',ROOT_LANGUAGE.DS.'en');

define('ROOT_LANGUAGE_VN',ROOT_LANGUAGE.DS.'vi');


define('RESIZE_WIDTH_IMAGE', 400);
define('RESIZE_WIDTH_IMAGE_MIN', 100);
define('RESIZE_WIDTH_IMAGE_NORMAL', 200);

define('PAGE_HOME','index');

define('IID',1);
define('OSD',2);

?>